﻿using System.ServiceModel.Syndication;
using System.Web.UI;
using OpenWaves.Web.Controls;

namespace OpenWaves.Syndication.Web.Controls
{
    public class SyndicationItemRepeater : Repeater<SyndicationItem>
    {
        [TemplateContainer(typeof(RepeaterItem<SyndicationItem>))]
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public override ITemplate FirstItemTemplate
        {
            get { return base.FirstItemTemplate; }
            set { base.FirstItemTemplate = value; }
        }

        [TemplateContainer(typeof(RepeaterItem<SyndicationItem>))]
        [PersistenceMode(PersistenceMode.InnerProperty)]
        public override ITemplate ItemTemplate
        {
            get { return base.ItemTemplate; }
            set { base.ItemTemplate = value; }
        }        
    }
}